package com.qinyunkj.searchchatserver.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.qinyunkj.searchchatserver.model.enums.SceneType;

@Data
@TableName("article_qa")
public class ArticleQA {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long articleId;
    
    private String question;
    
    private String answer;
    
    @EnumValue
    private SceneType sceneType;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @TableLogic
    private Integer deleted;
} 